package dao;

import org.apache.ibatis.annotations.Param;
import serivce.House;
import untity.BriefHouse;
import untity.FangZhi;
import untity.Position;
import untity.UserConnection;
import untity.screen.Screen;

import java.util.List;

public interface FangZhiDao {
    //增加房子
    int add(FangZhi f);
    //设定位置
    boolean setPosition(Position position);
    //删除房子
    void delete(int id);
    //更新房子信息
    void update(FangZhi f);
    //根据条件查询房子
    List<FangZhi> find(String fanwei,String position,String paixu);
    //get某一个房子
    FangZhi getFangZhi(int id);

    List<FangZhi> defaultfind();
    //存储房子的图片
    boolean putImg(@Param("id") String id, @Param("paths") String[] path);
    //发布房源时增加的设备
    int addEquipment(@Param("id") String id,@Param("list") List<String> list);
    //通过id 查询图片位置
    String[] searchImg(int id);

    List<BriefHouse> screen(@Param("position")Position position, @Param("screen")Screen screen);

    String allImg(int id);

    Position seachPositionById(int id);

    List<BriefHouse> nearbyHouse(@Param("position") Position position);

    UserConnection queryByhouseID(String id);

    Boolean updateStatus(String houseId);
}
